#include<iostream>
using namespace std;
#include<string>
int main()
{
    string s1;
    string s2;
    cin >> s1;
    if (s1.size() == 1)
    {
        cout << s1[0];
        return 0;
    }
    string::iterator it1 = --s1.end();
    while (it1 != s1.begin())
    {
        s2.push_back((*it1--));

    }
    s2.push_back((*it1));
    cout << s2;
    return 0;
}